import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Item extends Component {
    static propTypes = {
        name: PropTypes.string
    }

    static defaultProps={
        name:"默认的数据"
    }
    render() {
        return (
            <div>
                {this.props.name}
                item
            </div>
        );
    }
}
// Item.propTypes = {
//     name: PropTypes.string
// }
export default Item;
